Platform Explorer / Nuxeo Platform 6.0

Contribution org.nuxeo.ecm.platform.categorization.listener--listener

This contribution is part of XML component org.nuxeo.ecm.platform.categorization.listener inside nuxeo-platform-categorization-service-6.0.jar

Documentation

Sample core event listeners that reacts to document related events and launch all registered document categorizers.

Extension Point

Extension point listener of component EventServiceComponent.

Contributed Items

  • <listener async="false" class="org.nuxeo.ecm.platform.categorization.listener.DocumentCategorizationSyncListener" name="documentCategorizationSyncListener" postCommit="false" priority="50">
          <event>aboutToCreate</event>
          <event>beforeDocumentModification</event>
        </listener>

XML Source

<extension point="listener" target="org.nuxeo.ecm.core.event.EventServiceComponent">

    <documentation>
      Sample core event listeners that reacts to document related events
      and launch all registered document categorizers.
    </documentation>

    <listener async="false" class="org.nuxeo.ecm.platform.categorization.listener.DocumentCategorizationSyncListener" name="documentCategorizationSyncListener" postCommit="false" priority="50">
      <event>aboutToCreate</event>
      <event>beforeDocumentModification</event>
    </listener>

    <!-- disabled to workaround what looks like a cache invalidation problem
    <listener name="documentCategorizationAsyncListener" async="true" postCommit="true"
      class="org.nuxeo.ecm.platform.categorization.listener.DocumentCategorizationAsyncListener"
      priority="501"/>
    -->

  </extension>